package com.gwtsz.chart.output.utils;

import java.io.Serializable;
import java.util.ArrayList;

import www.com.library.app.Logger;

/**
 * Created by reeta.zou on 2016/11/15.
 * 指标对象
 */
public class GTTFormularContent implements Serializable {
    //指标名
    public String mName;
    //指标参数数量
    public int mParamNum;
    //指标对应参数
    public ArrayList<GTTFormularParam> mParamList = new ArrayList();

    public void print(){
        Logger.e("GTTFormularContent mName = " + mName +", " + mParamNum +", " + mParamList.size());
        for (int i = 0; i < mParamList.size(); i++){
            mParamList.get(i).print();
        }
    }

    /**
     * 设置k线指标参数数量
     */
    public void setParamNum(){
        if ("MA".equals(mName)) {
            mParamNum = mParamNum - 1;
        }
    }
}
